<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta
        name="viewport"
        content="width=device-width, initial-scale=1.0"
    >
    <title>注册页面</title>
    <style>
        body {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            /* 使用背景图片 */
        }

        .container {
            display: flex;
            max-width: 800px;
            width: 90%;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            border-radius: 10px;
            overflow: hidden;
        }

        .left-panel {
            background-color: #007BFF;
            color: white;
            padding: 40px;
            flex: 1;
        }

        .right-panel {
            background-color: white;
            padding: 40px;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        h2 {
            margin: 0 0 20px;
        }

        label {
            margin-top: 10px;
            font-weight: bold;
        }

        input[type="text"],
        input[type="password"] {
            width: 100%;
            padding: 10px;
            margin: 10px 0;
            border: 1px solid #ddd;
            border-radius: 5px;
            box-sizing: border-box;
        }

        input[type="submit"] {
            padding: 10px;
            background-color: #007BFF;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            width: 100%;
        }

        input[type="submit"]:hover {
            background-color: #0056b3;
        }
    </style>
</head>

<body>

    <div class="container">
        <div class="left-panel">
            <h1>宗文涛</h1>
            <p>版权所有：宗文涛</p>
        </div>
        <div class="right-panel">
            <h2>注册</h2>
            <form
                action="{{ url_for('register') }}"
                method="post"
            >
                <label for="username">用户名:</label>
                <input
                    type="text"
                    name="username"
                    required
                >
                <label for="password">密码:</label>
                <input
                    type="password"
                    name="password"
                    required
                >
                <input
                    type="submit"
                    value="注册"
                >
            </form>
        </div>
    </div>

</body>

</html>


